package cn.hesion.prototype.deepClone;

public class DeepCloneTest {
    public static void main(String[] args) {
        QiTianDaSheng qiTianDaSheng = new QiTianDaSheng();
        try {
            QiTianDaSheng clone = (QiTianDaSheng) qiTianDaSheng.clone();
            System.out.println("深拷贝"+(qiTianDaSheng.jinGuBang==clone.jinGuBang));
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        QiTianDaSheng q = new QiTianDaSheng();
        QiTianDaSheng n = q.shallowClone(q);
        System.out.println("浅拷贝"+(q.jinGuBang==n.jinGuBang));
    }
}
